body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #333;
    color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* 添加固定定位 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100; /* 确保导航栏在最上层 */
}

main {
    /* 减去顶部导航和底部菜单的高度 */
    margin-top: 50px; /* 假设顶部导航高度为 50px */
    margin-bottom: 50px; /* 假设底部菜单高度为 50px */
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

footer {
    background-color: #333;
    color: white;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 100; /* 确保底部菜单在最上层 */
}

.back-button {
    color: white;
    text-decoration: none;
    font-size: 20px;
}

header h1 {
    margin: 0;
    text-align: center;
    flex-grow: 1;
}

footer nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
}

footer nav ul li {
    cursor: pointer;
}

footer nav ul li a {
    color: white;
    text-decoration: none;
}

footer nav ul li a.active {
    font-weight: bold;
}

#more-menu-panel {
    position: fixed;
    bottom: 0; /* 初始位置在底部 */
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    transform: translateY(100%);
    height: 200px;/* 初始位置在底部 */
}

#more-menu-panel ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#more-menu-panel ul li {
    padding: 15px;
    border-bottom: 1px solid #eee;
    width: 100%; /* 确保列表项宽度为 100% */
    box-sizing: border-box; /* 包含内边距和边框在宽度内 */
}

#more-menu-panel ul li a {
    color: #333;
    text-decoration: none;
    display: block; /* 将链接显示为块级元素 */
    width: 100%; /* 确保链接宽度为 100% */
    height: 100%; /* 确保链接高度为 100% */
}

/* 添加鼠标悬停样式，应用到列表项 */
#more-menu-panel ul li:hover {
    color: white; /* 悬停时文字颜色变为白色 */
    background-color: #333; /* 悬停时背景颜色变为深灰色 */
}

/* 确保悬停时链接文字颜色也为白色 */
#more-menu-panel ul li:hover a {
    color: white;
}

#more-menu-panel.show {
    transform: translateY(0);
}
